package com.itheima.stock.api;

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVO;
import com.itheima.stock.vo.LoginVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 28188
 */
@RequestMapping(path = "/api")
public interface UserControllerAPI {

    /**
     * 获取验证码接口
     *
     * @return 验证码结果
     */
    @GetMapping(path = "/captcha")
    ResponseResult<CaptchaVO> generateCaptcha();

    /**
     * 登录接口
     *
     * @param loginDTO 登录参数
     * @return 登录结果
     */
    @PostMapping(path = "/login")
    ResponseResult<LoginVO> login(LoginDTO loginDTO);


}